package drg_group.wuxi_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.wuxi_2022.Base;
import drg_group.wuxi_2022.MedicalRecord;
import drg_group.wuxi_2022.ADRG.*;

public class MDCJ{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"B08.800x007","L01.000x011","Q82.506","Q82.500x005","S70.800x042","A60.100x002","D48.512","R22.000x003","L90.500x072","L94.600","T00.900x005","R22.100x002","L90.500x039","L44.300","L94.300","T14.000x011","C44.706","Z41.100x017","Z41.100x003","B43.200","C79.204","L89.205","L13.900","L85.804","S90.800x013","Q85.900x009","A18.409","Z41.100x019","L73.800x007","C43.507","A18.411","L40.100","L50.803","L20.900","L60.800x004","L98.800x017","L24.204","R22.400x003","L01.003","L25.800","R22.002","L65.902","L40.400","B37.203","L23.502","S40.001","L08.800x006","L25.400","L90.500x052","E10.600x027+L99.8*","S20.201","N62.x02","L89.302","R22.006","L27.004","L70.500","T00.902","D48.508","L03.106","L68.100","L98.503","L95.801","D48.601","L64.801","L90.500x054","L90.500x024","Q83.000","L90.500x064","D23.502","A18.400x020","D22.500x008","S60.700","C44.600","D04.601","B46.300x001+L99.8*","Z41.100x020","S60.000x001","N64.503","Q82.502","L98.804","L03.003","L57.100","L29.801","N64.900","L08.906","L72.200","N64.100","L44.800","L81.802","Q84.600x004","L90.500x022","S60.701","S50.701","D03.602","R22.901","D03.500","T00.100x001","L90.500x007","I89.800x015","L81.600","M79.804","N63.x01","L90.400","L10.800x002","L57.800x006","L01.005","L70.200","M31.000","Q85.900x024","L98.803","L20.806","T01.800x001","C44.703","L72.101","D23.504","L60.300","L03.306","R23.400x001","A18.400x013","L30.803","Q82.800x010","L20.801","L82.x00","L28.003","B00.100","Q83.100x002","L60.301","L65.800x005","L60.800x022","L51.802","L43.902","L82.x02","N62.x00x004","L70.803","L72.903","Q84.100","Z41.100x024","L21.001","L90.500x014","L13.100","L95.901","N61.x00x004","L58.100","L25.200","L98.702","L50.400","L30.801","L60.800x010","C46.000","S50.800x021","L90.500x045","T00.000x001","B78.100x001+L99.8*","E14.600x023","L08.000x005","L98.800x021","L81.601","L53.000","L98.101","L08.902","D23.505","L90.500x035","Q84.600x001","E10.603+L99.8*","Z42.401","L89.306","M79.400","D23.500x010","D04.500","L98.800x020","D03.700x001","T14.000x031","S39.911","L71.800","L24.600","I89.000x015","M79.805","Z42.801","L30.400x004","C50.902","Q84.000","L08.801","S40.701","L27.900","L60.800x017","I89.000x017","R21.x01","L68.200","C50.804","T00.900x003","D23.401","L12.800","L24.500","L08.000x001","L90.500x044","E51.100x006","L89.001","S90.800x021","L81.200","L10.801","D17.100x002","L92.200","S60.902","D23.900","L89.202","L72.104","L27.100","L70.002","A46.x00","L27.000x006","D05.900","L65.800x004","S60.800x041","S80.800x043","L08.900x028","L02.801","Q83.800x004","L30.905","L84.x00x002","L28.001","L02.900x006","A18.412","S20.200x003","L60.800x015","Q80.100","C44.500","L98.800x012","L10.200","M79.803","Q81.000","Z42.800x001","C50.300","L10.900","L81.407","L40.800","L24.100","L90.500x013","L72.904","S50.800x041","B09.x00x002","Z41.100x023","L08.901","C44.509","L50.000","A36.300","D23.506","L94.900","L24.200","S80.901","L89.002","S20.300x001","L70.005","T11.000x041","I89.800x012","L57.802","Q85.900x049","Z42.400x001","I89.800x013","S90.800x031","L81.100","L03.104","L01.002","R23.401","S20.000","Q80.200","L59.900","Q84.400","M79.802","L89.008","L90.500x009","N60.300","S30.800x004","S70.901","B41.800x002","D18.008","Q84.101","N64.802","L59.000","C44.605","S90.300x003","L65.802","S60.800x031","D03.700x002","Q82.800x011","D22.602","L90.500x040","L98.400","Q82.800x019","L72.900x002","R22.206","A18.401","S20.802","B07.x00x010","Q81.200","T14.101","L08.000x010","L81.000","M54.001","L70.001","L98.800","E10.600x021","L90.800","D03.701","L03.801","R21.x02","S70.100","D03.900x002","L56.000","L53.100","C43.503","L93.000","L13.800","L92.301","L30.900","L08.001","S20.803","D48.500x011","L93.100","S70.700x001","L60.800x013","D22.506","E11.600x024","Q82.800x001","E11.600x025","Z42.202","L72.106","N64.801","D03.800","L08.000x009","L02.802","I89.800x025","B43.000","L21.100","S90.200","T09.000x021","B44.800x002","Z42.203","D36.700x009","S90.800x022","A18.400x021","L60.800x018","C50.803","L02.903","L42.x00","I89.900","L30.204","L63.200","L02.902","S80.800x033","S30.003","B37.201","L81.401","D48.505","L73.200","L27.201","T13.000x021","L85.900","Z42.303","B35.800x004","Q84.602","L98.802","L27.101","L56.300","L30.802","N61.x06","S90.300x002","B36.100","L23.101","L90.500x065","Q80.300","D17.200x005","Q83.100x001","B35.800x002","R22.000x004","L83.x00","C44.505","L23.500","L24.501","L90.401","L27.003","L24.202","Q83.200","T00.300x001","L90.500x042","L89.305","L60.802","C79.200x005","N64.002","S30.100x004","L90.500x053","E11.600x970","B36.000x001","R22.203","N62.x00x001","Q81.800","L60.800x007","L30.800","L44.100","L03.305","S30.700","L51.000","C43.603","D04.502","L03.303","N62.x00x007","M79.801","L21.900","L03.101","D22.900x003","S60.800x022","D23.500","L60.801","L70.004","L89.203","Q82.807","Z41.100x013","R22.300x001","D05.100","L87.900","L85.200","S60.800x043","D03.601","M79.401","N61.x00x013","L44.200","D17.300x001","N60.201","L65.901","S80.800x041","L24.901","L30.203","L90.900x001","L85.900x001","L44.900","T14.000x003","L22.x01","R21.x00x001","N61.x00x014","L72.905","D48.600x001","D03.503","L29.900","L63.000","L90.500x026","S50.800x031","B35.600x002","D17.200x004","C79.200","C43.901","Q84.800x012","L90.500x023","L90.500x067","L60.900","D03.600","Q82.503","I89.000x004","N60.100x002","C43.705","L90.500x032","L23.000","Q83.100","Q82.501","S70.900x002","E50.800x002+L86*","L41.000","L27.801","E11.600x028","L67.101","L90.500x059","B35.801","L94.400","D48.513","C44.606","Q82.300","B35.002","L27.200","L50.300","B00.102","L65.903","L29.800","L01.100","L90.803","B37.205","D23.500x003","Q84.201","L90.500x062","S30.101","L81.702","D48.500x006","E10.600x023","M79.806","L40.802","D18.000x851","L03.304","R22.903","D17.200x002","L60.800x030","L90.500x047","N63.x00","L29.802","C50.000x001","L81.801","S50.000","L66.000","L26.x00","I89.800x029","L12.100","L01.000x012","N61.x01","L43.100","L81.403","L90.503","L53.200","Q82.507","S20.801","L90.500x056","L81.500","L98.800x022","L70.801","L90.500x050","L08.000x006","L02.900x001","E14.600x970","Z41.100x011","L72.000x006","R22.202","D22.503","D22.900x021","L89.105","L94.500","S60.201","L02.203","D22.509","L90.500x028","C50.200","C50.802","L53.101","T81.800x009","T00.900","S80.800x022","L12.102+H13.3*","C43.600","D48.510","S60.800x042","L02.403","S40.800x022","L85.800","L60.800x019","L56.800","D48.500x004","D17.500x010","L02.206","I89.800x022","L29.000","B37.900x001","S90.800x011","L81.701","L08.803","L26.x01","D48.500x010","C44.900","Q84.200","D17.100x001","S50.800x011","Z42.800x002","M35.600","L92.100","N64.300x001","Z42.200x001","R22.100x001","L24.800x001","Z41.100x009","L30.500x003","T11.101","S90.800x033","L72.800x001","L95.802","Z42.100x001","L92.800","L89.003","L41.300","C43.701","D23.701","B36.000x003","L73.900","Q80.800","E85.413+L99.0*","L90.500x041","D22.505","L23.600","L60.000","Q84.501","L90.500x031","L91.801","L02.901","N61.x03","L85.000","D22.502","S80.800x031","L80.x00","M79.404","E14.600x021","R22.700x002","S60.800x011","S60.900","L29.300","L70.802","S90.800x023","S60.800x033","D18.005","L70.900","L30.902","E10.600x024","D86.300x002","D17.200x003","L89.007","C43.704","L08.805","L02.201","L43.000","B37.204","S80.000","L02.800","L90.500x025","A18.811","Z41.100x005","L56.400","S40.800x011","L13.101","T14.000x041","L72.102","D23.700x001","S30.002","C50.800x005","T14.003","N62.x01","L75.200","D18.000x018","L30.500","L98.800x001","L08.910","B86.x00x004","Z42.302","Q83.801","B86.x00x007","L98.800x013","D17.300x004","L98.800x023","L02.402","C50.901","R60.900x004","L12.900","L08.800x011","L12.300","L63.900","L72.800x003","N64.501","T13.000","D48.500x009","L85.300","L24.601","D22.500","L92.302","Q83.300","L90.500x019","L21.800","T00.900x006","L87.001","L13.000","L24.801","L08.000x007","L98.300","S90.700","L03.107","L73.800x005","L60.800x031","B35.000x001","L56.401","Q82.800x006","L84.x00x001","Q80.900","C79.200x007","D22.600","T85.400","C44.603","L30.100","L12.200","L74.300","L60.800x026","L02.100","A18.402","L60.800x006","D48.502","L60.800x014","L89.000","L30.804","C50.001","A18.400x014","D18.000x816","L24.800","R92.x00","L73.800x006","D04.501","S20.700","S90.900x003","L10.400","L90.500x038","S40.800x021","C43.900x003","L72.800x004","L60.800x008","Q82.201","L89.301","S60.100x001","L73.800","L74.400","E14.600x025","B35.300","Z42.403","R22.200x004","D22.511","L44.400","L03.900","L43.901","T00.900x004","S40.900","L23.002","L50.801","L03.800","I89.800x024","S80.800x042","L59.801","S40.000x002","L89.307","B36.300","L98.800x016","L98.501","D17.900x001","L08.900","L40.003","B00.801+L99.8*","D18.000x828","S60.900x002","L60.800x027","L84.x01","L98.001","R22.005","N60.000","C44.704","L03.302","L24.201","S60.800x012","S20.400x001","E10.600x970","L92.000","S50.800x081","R58.x02","Q83.900","L85.803","S40.700","L52.x00","Q84.300","Z42.301","B35.003","L98.800x007","S20.200","B40.301+L99.8*","D48.516","L10.000","L24.000","C44.901","R21.x00x003","Z42.402","A18.405","C50.100","Z41.100x015","L91.800","L28.002","T14.001","L50.201","L01.008","B37.200x003","L30.901","L70.300","L65.801","Q80.400","D48.500x012","L58.900","L02.200","L68.900","L89.100","R22.000x005","L00.x00","L81.405","L70.100","L24.800x002","L89.300","S30.104","N64.504","L90.500x055","L40.300","D17.101","L30.202","L90.300","I89.800x014","L68.800","L40.900","L95.000","S30.000x004","I89.002","T13.000x031","L73.804","R60.900x003","Z42.201","L73.100","B35.800x003","L10.500","S70.800x031","S20.800x002","D18.000x848","B72.x00","L23.001","D03.500x002","L55.800","L43.301","C43.600x002","L66.800","Q83.803","L28.202","T00.900x007","L02.900x002","L29.100","E14.600x027+L99.8*","B35.001","S90.800x042","B07.x05","Z41.100x008","L93.200x003","L66.100","L98.900x002","L90.500x027","E05.906","D17.100x003","L23.200","L93.202","Z41.100x007","L98.600","S70.000","Q81.100","C43.700x001","S40.800x032","S80.800x032","D03.501","A18.404","E11.603+L99.8*","Q80.200x002","S70.800x021","L40.200","Z42.304","L41.000x002","B40.302+L99.8*","E10.600x026","L50.900","L92.300","L20.803","S40.000x001","B36.901","D86.300","B35.000","L60.800x025","L24.205","M34.100","R22.200x002","M54.003","L11.800","C44.702","L58.101","L30.000","L60.800x011","S50.700","L24.203","T85.401","Q18.301","C43.501","L81.800","N60.801","D04.503","S80.800x013","L83.x02","L71.000","E51.100x005+I98.8*","Q18.902","L02.202","S90.300x001","L60.201","D03.900","N64.200","L91.002","S70.800x041","L08.000x008","Z41.100x006","D18.000x847","I89.800x028","L90.901","D22.507","L85.801","L90.500x015","R22.204","L91.001","C44.501","B00.101","L03.001","T11.000","B35.600","S90.100","Z42.200x002","E16.300x003+L54.8*","L57.800x005","D48.507","T00.901","L89.006","A18.403","I89.800x027","L87.200","L50.500","L72.900x001","C44.707","R22.200x001","L23.700","D22.702","L95.800","D18.000x812","L91.900","D48.500x003","Q82.802","S60.800x032","Z41.100x012","C43.602","L65.904","L81.400x001","L65.100","S90.301","B35.901","L12.000","L05.000x001","L03.200","L53.901","C43.703","R22.003","Q85.900","L81.404","N64.805","L95.900x001","S50.901","S30.800x002","Q82.900","T13.000x011","L08.908","D22.510","L02.200x010","L90.500x029","C43.500","C50.900","D17.300x002","T14.002","S30.000x001","S60.800x021","L53.801","L90.500x073","S30.001","L50.100","D48.500x005","L90.505","L40.301","C43.508","L08.003","L73.000","S39.910","I89.009","L90.500x071","E11.600x023","L22.x00","L23.503","L60.800x023","S90.800x043","C50.000","S31.001","E14.600x024","D24.x01","D36.716","D23.600x002","C44.700","L98.800x010","Q80.000","L41.500","L89.303","D22.900","L72.902","E11.600x026","A18.400x022","I89.100x002","L50.600","L90.500x061","B00.000","T00.800x001","L08.904","L90.500x018","B40.300","L94.000","S50.900","D22.700","L02.300","D18.000x852","Q82.805","L90.500x016","L63.100","Z42.205","L60.800x024","L23.501","L50.802","L95.800x004","B35.100","S70.800x011","L85.100","L01.000x013","E51.100","L72.000x010","R21.x00x004","T00.200x001","C50.500","L28.100","S60.901","C44.503","S80.800x021","L90.500x034","L60.800x016","L25.300","L60.100","R23.801","L12.103+H13.3*","B36.300x002","L89.102","L90.100","Q85.900x028","L28.200","Z42.204","C43.800","L08.909","T11.000x031","L60.803","L08.907","L57.800x004","Z41.100x018","L72.105","D03.504","L40.001","S80.100x002","L56.100","S30.100x007","L90.200","L89.103","L41.900","S40.800x031","Q85.801","D04.600x001","L03.109","Q80.800x001","L53.300","N60.400","A18.400x010","L90.500x020","L27.800","S30.900x001","B07.x01","L83.x01","L23.900","D17.900x002","L66.900","N60.100","Z41.100x004","T11.000x051","C43.605","L95.900","D48.500x014","L57.900","L70.400","Q82.809","L23.801","E10.600x025","L57.801","L05.900","T11.000x021","N64.001","Q82.804","D48.500x007","B72.x00x001","L65.000","L90.500x030","L89.200","L90.500x049","T09.000x031","L25.500","L67.102","L44.000","D48.515","M34.803","D23.501","L10.300","C44.604","Z41.000","L11.100","L94.800","L23.100","B86.x00x006","L90.500x051","M79.811","D48.509","L03.102","L57.001","S80.900","L64.000","D24.x02","L81.800x005","L40.102","L90.500x043","L08.100","D03.502","L60.800x005","Q82.200","L89.208","L57.000","L43.800","D28.000x001","R23.800x001","S30.100x002","Z41.100x021","E10.600x028","L81.900","L90.500x060","Q85.900x026","B86.x00","L21.901","L60.800x012","B07.x00x006","Q85.915","L81.400","B38.300","Q84.600x003","S90.800x032","E14.600x022","L24.503","B00.100x004+H62.1*","L70.003","L73.805","E50.801+L86*","S90.900x002","L93.001","L67.105","S70.900x003","D05.700","Q82.504","L67.103","L03.000","L90.000","L98.502","L67.000","E14.600x026","T14.000","L90.902","L24.900","L60.800x034","N61.x04","D22.501","D18.000x010","C50.600","B36.200","L98.701","B86.x00x005","B88.001+L99.8*","L70.900x002","L30.201","L98.500","S90.800x012","T00.900x002","L10.800x001","L72.000","L98.800x026","B00.804+L99.8*","L97.x00","L95.100","L11.900","L82.x01","C44.602","N64.200x001","C44.508","Q84.801","L01.001","S30.100x001","L90.500x037","Z41.100x016","L56.900","L57.803","A18.406","C79.205","N61.x05","L40.801","S80.101","S80.800x011","T09.000","L90.500x017","N64.400","L81.803","L23.400","D48.511","L87.800","M34.000","Q82.000","D23.503","L03.802","L30.400","Q85.900x022","D24.x00","L94.301","D04.800","L63.800","S40.800x012","S40.000x003","Z41.104","D17.301","Z52.100","L70.000","L08.800x005","S70.700x002","L68.300","L89.308","T11.001","L57.400","L27.002","L25.900","L90.805","B36.200x001","C44.800","L89.206","L60.800x033","L60.200","L66.200","C79.800x831","D48.514","C43.706","L89.201","L90.500x021","L90.504","S30.801","B07.x03","L55.100","L92.801","L43.200","C43.502","L51.900","L28.000x006","L74.900","L40.103","N60.900","Z41.100x022","C50.801","C44.502","L02.205","S50.101","L50.202","L90.500x066","T09.000x041","S70.800x012","L72.100","L72.901","L08.903","L02.803","M31.000x005","L40.002","D04.900x001","D22.508","S40.800x042","B09.x01","L01.004","L75.201","L24.206","L20.000","D23.500x006","L90.502","L28.203","R22.300x002","Q82.100","D22.504","Q81.900","L27.005","L03.105","L90.500x006","Q84.500","B35.200","C43.504","Q85.900x025","L90.500x008","Q82.800x004","N61.x02","L65.800x003","L89.108","L90.500x058","S20.202","L12.202","L10.100","L57.200","S80.800x023","L21.002","T09.000x011","L30.301","L71.900","L60.800x009","L90.501","M79.809","S30.900x002","L73.802","L08.800x008","L67.104","Q82.803","L65.200","L89.207","L71.100","L90.500x063","L24.504","L03.301","R22.700x001","Q82.400","C44.705","Q84.600x002","L12.101","L98.801","D23.602","D22.900x017","D23.600x001","Z41.100x002","L89.004","Z42.300x001","C43.707","L40.101","L89.106","I89.800x030","L90.500x057","L89.005","D04.701","L68.000","D48.500x008","A18.407","L03.103","Q84.202","R22.004","L73.803","L24.502","L60.800x032","L13.901","R22.904","D23.400x003","Q84.601","C43.606","C43.604","L30.300","L23.504","C43.601","T13.000x051","L05.901","L40.500","L60.800x029","S90.000","L74.801","N60.101","L88.x00","B07.x04","L73.801","Q82.800x003","L89.101","L24.300","I97.200","D03.600x002","C50.800","L90.500x010","L03.000x015","D18.006","N64.804","L40.000","N60.202","L90.500x012","D48.506","L24.400","L89.204","T09.000x051","L66.300","L08.002","S30.000x003","L74.000","S70.800x022","S30.800x001","S21.000","L66.400","D23.700x002","S20.301","D22.701","L25.100","C96.200x006","L03.004","L92.903","L98.200","D05.000","L51.200","S80.800x012","L28.201","B35.500","N61.x07","L02.401","L89.107","L55.900","L50.200","L81.300","L03.002","L93.201","L94.200","S40.800x041","D23.601","L70.201","E14.600x028","T01.301","L98.800x011","Z41.105","B35.400","L90.600","L60.400","L72.000x007","L02.200x009","L03.108","Q82.505","B86.x00x003","C43.900","D22.900x002","C44.507","L20.804","S90.800x041","L25.201","L89.900","A18.408","L90.500x036","M79.807","L53.800","A18.400x006","L60.500","L72.103","L02.804","L60.800x028","L28.000","L90.500x074","L81.700x002","C44.701","L57.300","D48.501","L90.500x046","L90.500x048","L21.000","D18.000x849","B87.000x001+L99.8*","S20.101","L67.100","L90.500x011","C44.506","D18.007","Q84.502","Q83.802","R22.205","L55.200","L92.901","D17.000x004","Q82.801","S70.900x001","B37.900x002","S90.901","Z41.100x014","L67.800","D48.500x002","L81.402","D04.504","L75.000","C79.806","B45.200","R22.402","I89.000x013","L75.100","B00.100x001","D22.901","S60.800x023","L24.700","L70.202","L56.200","D17.300x005","D22.601","D04.700x001","L90.804","L41.100","L74.200","E83.201","L64.900","Q82.806","L89.104","S60.202","L27.000x004","S30.800x003","D48.503","S30.100","B37.900x003","S31.002","L05.000","Q84.900","L74.100","T14.000x021","N60.000x001","S70.800x032","L41.801","B37.202","L60.800x020","S60.801","Q82.810","Q82.800x018","R22.302","C79.200x001","L30.904","R22.207","M79.403","L25.000","L75.900","L98.800x027","M54.002","D48.504","L53.900","I89.800x020","L98.401","E11.600x027+L99.8*","L10.800","L41.400","L98.800x015","R22.400x002","L90.801","S30.900x003","R23.400x003","L30.903","L08.802","L93.200","L55.000","Q83.800x005","I89.800x026","C43.505","L58.000","L08.804","C43.506","L51.100","L81.703","Z41.100x010","C44.601","L28.000x007","L72.000x011","A18.400x001","L70.203","R23.800x002","N64.502","N60.000x002","I89.000x026","L90.500x033","N60.100x003","T13.000x041","L12.201","L08.905","L03.300","L74.001","L98.000","R22.902","L20.802","Q82.508","T00.600x001","Q82.808","L23.901","L75.800","N62.x00","L60.800x021","L72.900x003","L57.500","Z42.200x003","L02.200x004","L67.900","B35.100x002","L98.800x014","N60.200","L67.106","B88.000x006+L99.8*","N64.803","C44.504","L94.100","E11.600x021","C79.200x006","L08.911","C50.400","D17.500x011","C43.702","D48.517","L89.304","C50.900x005","B07.x00x011","B07.x00x008","M34.200","A18.410","L23.300","T79.700","S80.700","L98.800x018","D17.200x001","B88.000x004+L99.8*","L81.800x003","L11.000","B00.100x005","D18.000x850","L98.700x001"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCJ入组条件，匹配规则：主诊断匹配");
        String result;

        result=JA1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JA2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JB3.group(record);
        if (result.length()>0){
            return result;
        }

        result=JC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JJ1.group(record);
        if (result.length()>0){
            return result;
        }

        if (record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合JQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "JQY";
        }

        result=JR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JR2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JS2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=JV2.group(record);
        if (result.length()>0){
            return result;
        }

        result=JZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCJ的ADRG入组条件");
        return "";
    }
}

